package com.dyoud.api.user.dto;

import java.io.Serializable;

import javax.validation.constraints.NotNull;

import org.hibernate.validator.constraints.NotBlank;

/**
 * 检查银行卡
 * 
 * @author Jonathan
 * @date 2018/03/08
 *
 */
public class CheckBankInfoDto implements Serializable {

    /**
     * 
     */
    private static final long serialVersionUID = 1L;

    public CheckBankInfoDto() {
    }

    public CheckBankInfoDto(String cardNo, String name, String phone, String idCardNo) {
        this.cardNo = cardNo;
        this.name = name;
        this.phone = phone;
        this.idCardNo = idCardNo;
    }

    /**
     * 银行卡号
     */
    @NotBlank(message = "银行卡卡号不能为空")
    private String cardNo;
    /**
     * 姓名
     */
    @NotBlank(message = "姓名不能为空")
    private String name;
    /**
     * 手机号
     */
    private String phone;
    /**
     * 身份证号
     */
    @NotBlank(message = "身份证号码不能为空")
    private String idCardNo;

    /**
     * 用户ID
     */
    @NotNull(message = "用户ID不能为空")
    private Long userId;

    @NotNull(message = "银行卡ID不能为空")
    private Long bankId;
    @NotBlank(message = "短信验证码不能为空")
    private String code;

    public String getCardNo() {
        return cardNo;
    }

    public void setCardNo(String cardNo) {
        this.cardNo = cardNo;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getIdCardNo() {
        return idCardNo;
    }

    public void setIdCardNo(String idCardNo) {
        this.idCardNo = idCardNo;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getBankId() {
        return bankId;
    }

    public void setBankId(Long bankId) {
        this.bankId = bankId;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

}
